const router = require('express').Router()
const newsController = require('../../controller/newsController')

// 用户列表
router.get('/news/index', newsController.index)
// 添加显示
router.get('/news/add', newsController.create)
// 添加处理
router.post('/news/create', newsController.store)

// 资讯修改
router.get('/news/:id/edit', newsController.edit)
// 修改处理
router.post('/news/:id/edit', newsController.update)
router.delete('/news/:id/del', newsController.del)


module.exports = router